﻿cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 17)

project(utility)

set(cpp_header_files
"./include/common_header.h"
"./include/utl/allocator.h"
"./include/utl/vector.h"
"./include/utl/async.h"
"./include/utl/memory.h"
"./include/utl/io.h"
"./include/utl/time.h"
"./include/utl/deque.h"
"./include/utl/entt.h"
"./include/utl/input.h"
"./include/utl/math.h"
"./include/utl/hash_map.h"
"./include/utl/image.h" "include/utl/stack.h" "include/utl/logger.h"  "include/utl/tree_node.h")

set(cpp_source_files
"./source/allocator.cpp"
"./source/async.cpp"
"./source/io.cpp"
"./source/input.cpp"
"./source/image.cpp"
 "source/memory.cpp" "source/logger.cpp")

add_library(utility STATIC ${cpp_header_files} ${cpp_source_files})
target_link_libraries(utility PUBLIC EASTL mimalloc-static EnTT::EnTT stb_image spdlog::spdlog)
target_include_directories(utility PUBLIC "${CMAKE_CURRENT_LIST_DIR}/include")